<%-- 
    Document   : Search_News
    Created on : Dec 21, 2014, 3:11:33 PM
    Author     : Tran Thuy Duong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Show</title>
    </head>
    <body>
        <div class="table" id="table_TT">
            <c:set var="info" value="${requestScope.INFO}"/>
            <c:if test="${not empty info}">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                        <tr>
                                <th width="13"><input type="checkbox" class="checkbox" /></th>
                                <th>Tiêu đề</th>
                                <th>Mô tả</th>
                                <th>Ngày đăng</th>
                                <th>Hình ảnh</th>

                                <th width="110" class="ac">Content Control</th>
                        </tr>
                        
                        <c:set var="count" value="0"/>
                            <c:forEach var="rows" items="${info}">
                                <c:set var="count" value="${count + 1}"/>
                            <tr>
                                    <td>$(count)</td>
                                    <td><h3>$(rows.TieuDeTT)</h3></td>
                                    <td>$(rows.MoTa)</td>
                                    <td>$(rows.NgayDang)</td>
                                    <td>$(rows.HinhAnh)</td>

                                   
                                    <td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
                            </tr>
                            </c:forEach>

                    </table>
                </c:if>

                <!-- Pagging -->
                <div class="pagging">
                        <div class="left">Showing 1-8 of 44</div>
                        <div class="right">
                                <a href="#">Previous</a>
                                <a href="#">1</a>
                                <a href="#">2</a>
                                <a href="#">3</a>
                                <a href="#">4</a>
                                <a href="#">245</a>
                                <span>...</span>
                                <a href="#">Next</a>
                                <a href="#">View all</a>
                        </div>
                </div>
                <!-- End Pagging -->

        </div>
        <!-- Table -->
    </body>
</html>
